export function regEmail (email) {
  if (String(email).indexOf('@') > 0) {
    const str = email.split('@')
    let _s = '****'
    if (str[0].length > 3 && str[0].length < 10) {
      for (let i = 0; i < str[0].length - 3; i++) {
        _s += '*'
      }
    }
    return str[0].substr(0, 3) + _s + '@' + str[1]
  }
  return email
}
export function regMobile (mobile) {
  const strMobile = mobile.toString()
  if (strMobile.length > 7) {
    return strMobile.substr(0, 3) + '****' + strMobile.substr(7)
  }
  return strMobile
}
